﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:GraphicsDesigner_Controls="clr-namespace:GraphicsDesigner.Controls"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:t="clr-namespace:HelixToolkit;assembly=HelixToolkit" 
	mc:Ignorable="d" 
	d:DesignHeight="586" d:DesignWidth="808">
	
	<!-- Resource dictionary entries should be defined here. -->
	<ControlTemplate x:Key="DesignerControlTemplate" TargetType="{x:Type GraphicsDesigner_Controls:DesignerControl}">
	
	<Grid>
        <t:HelixView3D x:Name="view1">
            <t:DefaultLightsVisual3D/>
            <t:GridLinesVisual3D Center="-0.5,-0.5,-0.5" Width="20" Height="20" MinorDistance="1" MajorDistance="10" Thickness="0.04" Fill="Black"/>
            <ModelVisual3D Content="{Binding Model}"/>
        </t:HelixView3D>
        <DockPanel 
  Width="Auto" 
  VerticalAlignment="Stretch" 
  Height="Auto" 
  HorizontalAlignment="Stretch" 
  Grid.ColumnSpan="1" 
  Grid.Column="0" 
  Grid.Row="0" 
  Margin="0,0,0,0" 
  Grid.RowSpan="1">
            <Viewport3D Name="mainViewport" ClipToBounds="True" Height="461">
                <Viewport3D.Camera>
                    <PerspectiveCamera 
	  FarPlaneDistance="100"
	  LookDirection="-11,-10,-9"
	  UpDirection="0,1,0"
	  NearPlaneDistance="1" 
	  Position="11,10,9" 
	  FieldOfView="70" />
                </Viewport3D.Camera>
                <ModelVisual3D>
                    <ModelVisual3D.Content>
                        <DirectionalLight 
	    Color="White" 
	    Direction="-2,-3,-1" />
                    </ModelVisual3D.Content>
                </ModelVisual3D>
            </Viewport3D>
        </DockPanel>
    </Grid>
	</ControlTemplate>
</ResourceDictionary>